namespace Discovery.HttpClient.Consul.Options;

/// <summary>
/// 服务注册配置
/// </summary>
public class ServiceRegisterSetting
{
    /// <summary>
    /// 服务名称
    /// </summary>
    public string ServiceName { get; set; }
    /// <summary>
    /// 服务ip
    /// </summary>
    public string ServiceIP { get; set; }
    /// <summary>
    /// http or https
    /// </summary>
    public string ServiceScheme { get; set; }
    /// <summary>
    /// 端口号
    /// </summary>
    public int ServicePort { get; set; }

    /// <summary>
    /// 健康检查地址
    /// </summary>
    public string HealthCheckRelativeUrl { get; set; }


    /// <summary>
    /// 健康间隔时间间隔 单位毫秒
    /// </summary>
    public int HealthCheckIntervalInMilliseconds { get; set; }

    /// <summary>
    /// 健康检查超时时间间隔 单位毫秒
    /// </summary>
    public int HealthCheckTimeOutInMilliseconds { get; set; }
}